package org.pie.drawing.apps.picimageserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.pie.drawing.apps.picimageserver.dto.ImageInfoDto;
import org.pie.drawing.apps.picimageserver.dto.ImageSearchDTO;
import org.pie.drawing.apps.picimageserver.entity.ImageIndexEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ImageIndexService extends IService<ImageIndexEntity> {

    void saveImageIndex(ImageInfoDto dto);

    void searchImageIndex(ImageSearchDTO dto, HttpServletResponse response);

    void searchById(Long id, HttpServletResponse response);

    List<ImageIndexEntity> list(ImageSearchDTO dto);

    ImageIndexEntity newestImage(ImageSearchDTO dto);

    List<String> hourList(ImageSearchDTO dto);
}
